package com.it.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 查勘报告VO类（关联调度表和报案表信息，包含查勘地点）
 */
@Getter
@Setter
@Accessors(chain = true)
public class AiSurveyReportVo implements Serializable {

    private static final long serialVersionUID = 1L;

    // 查勘表字段
    @TableId(value = "survey_id", type = IdType.AUTO)
    private Integer surveyId;

    @TableField("survey_in_work_no")
    private String surveyInWorkNo;

    @TableField("survey_out_work_no")
    private String surveyOutWorkNo;

    @TableField("survey_status")
    private Integer surveyStatus;

    @TableField("survey_address")
    private String surveyAddress;

    // 调度表字段
    @TableField(exist = false)
    private Integer dispatchId;

    @TableField(exist = false)
    private String reportNo;

    @TableField(exist = false)
    private String policyId;

    @TableField(exist = false)
    private String surveyorWorkNo;

    @TableField(exist = false)
    private String dispatchRemark;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime surveyorConfirmTime;

    // 报案表字段
    @TableField(exist = false)
    private String reporterName;

    @TableField(exist = false)
    private String reporterPhone;
}
